package com.community.service;

import org.apache.solr.client.solrj.SolrQuery;
import org.apache.solr.client.solrj.SolrServerException;
import org.apache.solr.common.SolrDocumentList;
import org.apache.solr.common.SolrInputDocument;

import java.io.IOException;

public interface ISolrService {

    void add(SolrInputDocument document) throws IOException, SolrServerException;

    SolrDocumentList query(SolrQuery solrQuery) throws Exception;

    void del(String delQuery);

}
